<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        function Person(name,age){
            this.name=name
            this.age=age
            this.sayHi=function(){
                console.log('hello world')
            }
        }
        var p1=new Person('zhicha',18)
        var p2=new Person('xiaoqing',19)
        console.log(p1,p2)
        
        p1.sayHi()
        p2.sayHi()

        console.log(p1===p2)
    </script>
</body>
</html>